home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / texinfo / util / Makefile.in < prev    next >
Makefile  |  1994-01-28  |  2KB  |  96 lines

  1. # Makefile for GNU Texindex.
  2. # Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. #### Start of system configuration section. ####
  19.  
  20. srcdir = @srcdir@
  21. VPATH  = $(srcdir):$(common)
  22.  
  23. common = $(srcdir)/../libtxi
  24.  
  25. CC = @CC@
  26. INSTALL = @INSTALL@
  27. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  28. INSTALL_DATA = @INSTALL_DATA@
  29.  
  30. LN    = ln
  31. RM    = rm -f
  32. TAR    = tar
  33. MKDIR    = mkdir
  34.  
  35. DEFS = @DEFS@
  36. LIBS = -L../libtxi -ltxi @LIBS@
  37. LOADLIBES = $(LIBS)
  38.  
  39. SHELL = /bin/sh
  40.  
  41. CFLAGS = -g
  42. LDFLAGS = -g
  43.  
  44. prefix = /usr/local
  45. exec_prefix = $(prefix)
  46. bindir = $(exec_prefix)/bin
  47. # Prefix for each installed program, normally empty or `g'.
  48. binprefix = 
  49. libdir = $(prefix)/lib
  50. # Prefix for each installed man page, normally empty or `g'.
  51. manprefix = 
  52. mandir = $(prefix)/man/man1
  53. manext = 1
  54. infodir = $(prefix)/info
  55.  
  56. #### End of system configuration section. ####
  57.  
  58. all: texindex
  59. sub-all: all
  60.  
  61. .c.o:
  62.     $(CC) -c $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) -I$(common) $(CFLAGS) $<
  63.  
  64.  
  65. install: all
  66.     $(INSTALL_PROGRAM) texindex $(bindir)/texindex
  67.     $(INSTALL_PROGRAM) $(srcdir)/texi2dvi $(bindir)/texi2dvi
  68.  
  69. uninstall:
  70.     rm -f $(bindir)/texindex $(bindir)/texi2dvi
  71.  
  72. Makefile: Makefile.in ../config.status
  73.     cd ..; sh config.status
  74.  
  75. TAGS:
  76.     etags *.c *.h $(common)/getopt*.c $(common)/getopt.h
  77.  
  78. clean:
  79.     rm -f *.o a.out core core.* texindex
  80.  
  81. mostlyclean: clean
  82.  
  83. distclean: clean
  84.     rm -f Makefile config.status
  85.  
  86. realclean: distclean
  87.     rm -f TAGS
  88.  
  89. texindex: texindex.o ../libtxi/libtxi.a
  90.     $(CC) $(LDFLAGS) -o texindex texindex.o $(LOADLIBES)
  91.  
  92. texindex.o: texindex.c $(common)/getopt.h
  93.  
  94. # Prevent GNU make v3 from overflowing arg limit on SysV.
  95. .NOEXPORT:
  96.